const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
})


module.exports = {
  css: {
    loaderOptions: {
      less: {
        additionalData: {
          '@import': '@/assets/less/common.less'
        }
      }
    }
  },
  //连接后端配置
  devServer: {
    host: '0.0.0.0',
    historyApiFallback: true,
    allowedHosts: "all",
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:5000',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}
